package prueba;

/*
import java.util.Date;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class prueba extends MIDlet {

	Alert timeAlert;

	public prueba() {
		timeAlert = new Alert("Alert!");
		timeAlert.setString(new Date().toString());
	}
	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
		// TODO Auto-generated method stub
	}
	protected void pauseApp() {
		// TODO Auto-generated method stub
	}
	protected void startApp() throws MIDletStateChangeException {
		Display.getDisplay(this).setCurrent(timeAlert);
	}
}
*/



import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.TextBox;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;


public class prueba extends MIDlet {

	private Display display = null;
	private TextBox textBox = null;

	public prueba() {
	}

	protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
	}

	protected void pauseApp() {
	}

	protected void startApp() throws MIDletStateChangeException {
		display = Display.getDisplay(this);
		textBox = new TextBox("Simple", "Hola Mundo!", 100, 0);
		System.out.println("jajaja estoy probando...");
		display.setCurrent(textBox);
	}
}
